package com.code.splider.common.temp.plugin;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

/**
 * 分页查找对象
 * 
 * @author xujianhua 2015年12月25日
 */
public class Pagination<T> extends RowBounds {

	private int count = 0;// 记录的总数量

	private List<T> data;// 返回的数据，Object对应为Map或POJO

	private int offset;
	
	private int limit;

	public Pagination() {

	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}
}
